<template>
  <el-container>
    <el-main>
      <venus-form
        :venus-form-items="venusFormItems.modifyFormItems"
        :parms-value="parmsValue.modifyParmsValue"
      />
    </el-main>
  </el-container>
</template>

<script>
  import { formFuncs, formItems } from '@/utils/formItems'
  import Vue from 'vue'

  export default {
    props: {
      editMod: {
        type: String,
        default: 'ADD'
      }
    },
    data() {
      return {
        dict: Vue.filter('dict'),
        parmsValue: {
          // 增删改字段值
          modifyParmsValue: {
            name: '',
            code: ''
          },
          addParmsValue: {

          }
        },
        venusFormItems: {
          // 删改字段
          modifyFormItems: [
            formItems.superiorProdName,
            formItems.pmodCode,
            formItems.prodPlan,
            formItems.prodDocTemplates,
            formFuncs.withProperty(formItems.t8ProdSeriesId, formItems.REQUIRE),
            formFuncs.withProperty(formItems.trusteeName1, formItems.REQUIRE),
            // formItems.trusteeMod,
            formItems.prodDocTemplates,
            formItems.t8ProdSeriesId,
            formItems.trusteeName1,
            formItems.trusteeMod,
            formItems.isOnline,
            formItems.t8SysPortfolId,
            formItems.prodMod,
            formItems.isCycle,
            formItems.isStructProd,
            formItems.isStructDeposit,
            formItems.fatherType,
            formItems.levelType,
            formItems.checkInon,
            formItems.prodCode,
            formItems.prodName,
            formItems.prodType,
            formItems.sourceValueBank,
            formItems.sourceValueExchange,
            formItems.issuCcy,
            formItems.investCuy,
            formItems.riskLev,
            formItems.carryMod,
            formItems.incomeType,
            formItems.acctMod,
            formItems.expeScaleW,
            formItems.actualScaleW,
            formItems.saleArea,
            formItems.baseDays,
            formItems.deprtForRisk,
            formItems.minRate,
            formItems.maxRate,
            formItems.expeRate,
            formItems.yieldBandingDesc,
            formItems.sharebonusType,
            formItems.minSize,
            formItems.threshold1,
            formItems.threshold2,
            formItems.chargeType,
            formItems.payType,
            formItems.bigRate,
            formItems.isRensRate,
            formItems.rensRate,
            formItems.isSubsRate,
            formItems.subsRate,
            formItems.isRensRate,
            formItems.redeemRate,
            formItems.remark
          ],
          // 新增字段
          addFormItems: [
          ]
        }
      }
    },
    // 生命周期开始
    // 生命周期结束
    methods: {
      currentChange() {

      }
    }
  }
</script>
